package com.aitou.mrylive.presentation.ui.main.find.pengyouquan;

import com.aitou.mrylive.data.bean.BaseResponse;
import com.aitou.mrylive.data.repository.NewSourceFactory;

import java.util.List;

import rx.Observable;

/**
 * Created by admin on 2016/9/22.
 */
public class DongtaiManager {
    public Observable<BaseResponse<PublishBean>> publish(String token, String content, String pics){
        return NewSourceFactory.create().publish(token,content,pics);
    }
    public Observable<BaseResponse<String>> updatePublish(String token,String pid,String content,String pics){
        return NewSourceFactory.create().updatePublish(token, pid, content, pics);
    }

    public Observable<BaseResponse<String>> deletePublish(String token,String pid){
        return NewSourceFactory.create().deletePublish(token, pid);
    }
    public Observable<BaseResponse<String>> dianzan(String token,String pid,String isLike){
        return NewSourceFactory.create().dianzan(token, pid, isLike);
    }

    public Observable<BaseResponse<DongTaiListBean>> getDongTaiLieBiao(String token,String page,String pagesize){
        return NewSourceFactory.create().dongTaiLieBiao(token, page, pagesize);
    }

    public Observable<BaseResponse<DongTaiDetailBean>> getDongTaiDetail(String token, String pid, String max_like, String max_reply) {
        return NewSourceFactory.create().getDongTaiDetail(token, pid, max_like, max_reply);
    }

    public Observable<BaseResponse<List<MyDongTaiBean>>> getMyDongTaiLieBiao(String token, String page, String pagesize) {
        return NewSourceFactory.create().getMyDongTaiLieBiao(token, page, pagesize);
    }

    public Observable<BaseResponse<DongTaiListBean.DongTaiItem.ReplyList>> getHuiFuList(String token, String pid, String pageNo, String pageSize) {
        return NewSourceFactory.create().getHuiFuList(token, pid, pageNo, pageSize);
    }

    public Observable<BaseResponse<DongTaiListBean.DongTaiItem.ReplyList>> getDianZanList(String token, String pid, String pageNo, String pageSize) {
        return NewSourceFactory.create().getDianZanList(token, pid, pageNo, pageSize);
    }
}
